<%
	List entities = null;
	List list = new ArrayList();
	if (type.equals("0") || type.equals("1") || type.equals("2")) {     
		entities = HistoryEntity.getEntities();
    	            for(int j = 0; j < entities.size(); j++){
    	            	Entity entity = (Entity)entities.get(j);
    	            	list.add(entity.getAttribute());
    	            	Collections.sort(list);
    	            }
    	            for(int h = 0; h < list.size(); h++){
                	out.print("<option value="+list.get(h) + (item1.equals(list.get(h))?" selected":"") + ">"+list.get(h) +"</option>");
    	            }
	}
	else {
		entities = RunningEntity.getEntities();
    	            for(int j = 0; j < entities.size(); j++){
    	            	Entity entity = (Entity)entities.get(j);
    	            	list.add(entity.getAttribute());
    	            	Collections.sort(list);
    	            }
    	            for(int h = 0; h < list.size(); h++){
                	out.print("<option value="+list.get(h) + (item1.equals(list.get(h))?" selected":"") + ">"+list.get(h) +"</option>");
    	            }
	}
%>